<template>
  <div class="p">
    <div class="ck-content" v-html="content"></div>
  </div>
</template>

<script>
import "./content-styles.css";
export default {
  data() {
    return {
      content: "",
    };
  },
  created() {
    //初始化内容
    this.content = window.sessionStorage.getItem(`preview_content`);
  },
};
</script>

<style lang="less" scoped>
.p{
  padding: 100px 100px;
  background-color: gray;
}
.ck-content{
  padding: 50px 50px;
  background-color: white;
}
</style>